package jeconbond.economic.natural.agent;

import jeconbond.economic.agent.service.IPreActServiceAgent;
import jeconbond.economic.agent.IEconomicAgent;
import jeconbond.economic.resources.IResourceType;
import jeconbond.economic.systems.natural.NaturalResourceRedestributionSystem;

public class ProvideSingleResourceAgent implements IEconomicAgent, IPreActServiceAgent {
	private NaturalResourceRedestributionSystem nrrs;
	private IResourceType type;
	private double value;

	public ProvideSingleResourceAgent(
			NaturalResourceRedestributionSystem nrrs,
			IResourceType type, 
			double value
	) {
		this.nrrs = nrrs;
		this.type = type;
		this.value = value;
	}

	@Override
	public void processPreProduceStage() {
		nrrs.storeResource(type, value);
	}

	@Override
	public void processProduceStage() {}

	@Override
	public void processPostProduceStage() {}
}
